package light.mvc.model.item;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import light.mvc.model.base.IdEntity;
import light.mvc.model.register.TregisterTreatment;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "treatment")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Ttreatment extends IdEntity implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private String description;
	private String treatmentItem;
	private Double price;
	
	private Set<TregisterTreatment> registerTreatments = new HashSet<TregisterTreatment>(0);
	
	@OneToMany(mappedBy = "treatment")
	public Set<TregisterTreatment> getRegisterTreatments() {
		return registerTreatments;
	}
	public void setRegisterTreatments(Set<TregisterTreatment> registerTreatments) {
		this.registerTreatments = registerTreatments;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public String getTreatmentItem() {
		return treatmentItem;
	}
	public void setTreatmentItem(String treatmentItem) {
		this.treatmentItem = treatmentItem;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	
	
}
